import {RESULTS} from 'react-native-permissions';

export const MapPowerResult = new Map([
  [RESULTS.UNAVAILABLE, '不支持'], //此功能不可用（在此设备上/在此上下文中）
  [RESULTS.GRANTED, '已授权'], //已授予权限
  [RESULTS.LIMITED, '已授权有限制'], //许可已授予，但有限制
  [RESULTS.DENIED, '未授权'], //权限未被请求/被拒绝，但可请求
  [RESULTS.BLOCKED, '已拒绝'], //该权限被拒绝，不再可请求
]);

export const MapPowerName = new Map([
  ['INTERNET','打开网络'],
  // ['READ_EXTERNAL_STORAGE','读SDCard'],
  ['WRITE_EXTERNAL_STORAGE','读写SDCard'],
  ['CAMERA','相机'],
  ['RECORD_AUDIO','麦克风'],
  ['READ_CALENDAR','读日历'],
  ['WRITE_CALENDAR','写日历'],
  ['READ_CONTACTS','读通讯录'],
  ['WRITE_CONTACTS','写通讯录'],
  ['ACCESS_COARSE_LOCATION','大概位置'],
  ['ACCESS_FINE_LOCATION','精确位置'],
  ['ACCESS_NETWORK_STATE','网络状态'],
]);